<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Module Management</title>
    </head>
    <body>
        <s:form action="createModule" namespace="/ModuleManagement" method="create" >
            <s:select name="moduleType"  
                      list="moduleTypes" label="Module Type"/>
            <s:textfield name="moduleCode" label="Module Code" />
            <s:textfield name="moduleTitle" label="Module Title"/>
            <s:select name="owner.lectureId" 
                      list="lecturers" label="Owner" listKey="lectureId" listValue="name" value="owner.{lectureId}" />
            <s:checkboxlist name="lecturers.lectureId" label="Lecturers"
                            list="lecturers" listKey="lectureId" listValue="name"  />    
            <s:submit value="submit" name="submit" />
        </s:form>
    </body>
</html>
